package com.yuyou.tas.report.vo.req;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by yujin.liu on 2018/10/24.
 */
public class ExamModelActivityAdd {



    @ApiModelProperty(value = "活动名称",required = true)
    @Length(max = 40 , message = "活动名不能超过40个字")
    @NotBlank(message = "name 不能为空")
    private String name;

    @ApiModelProperty(value = "开放时间",required = true)
    @NotNull(message = "openTime 不能为空")
    private Date openTime;

    @ApiModelProperty(value = "活动说明")
    @Length(max = 200 , message = "活动说明不能超过40个字")
    private String intro;

    @ApiModelProperty(value = "是否启用 0 : 否，1 : 是",required = true)
    @NotNull(message = "isUse 不能为空")
    private Integer isUse;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }
}
